package wangjg.security.interceptor.struts;

import com.opensymphony.xwork2.ActionInvocation;  
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;  
  
public class StrutsMethodInterceptor_ extends MethodFilterInterceptor {  
  
    private static final long serialVersionUID = 1L;  
  
    private String name;  
      
    @Override  
    protected String doIntercept(ActionInvocation actionInvocation) throws Exception {  
      
        System.out.println("拦截器名称:" + name);  
        System.out.println("action:" + actionInvocation.getAction());  
          
        return actionInvocation.invoke();  
    }  
  
    public String getName() {  
        return name;  
    }  
  
    public void setName(String name) {  
        this.name = name;  
    }  
}  